/*
 * XML Type:  WireTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.WireTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML WireTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class WireTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.WireTransactionResponse
{
    
    public WireTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName WIRERS$0 = 
        new javax.xml.namespace.QName("", "WIRERS");
    private static final javax.xml.namespace.QName WIRECANRS$2 = 
        new javax.xml.namespace.QName("", "WIRECANRS");
    
    
    /**
     * Gets the "WIRERS" element
     */
    public net.ofx.types.x2003.x04.WireResponse getWIRERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireResponse target = null;
            target = (net.ofx.types.x2003.x04.WireResponse)get_store().find_element_user(WIRERS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "WIRERS" element
     */
    public boolean isSetWIRERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRERS$0) != 0;
        }
    }
    
    /**
     * Sets the "WIRERS" element
     */
    public void setWIRERS(net.ofx.types.x2003.x04.WireResponse wirers)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireResponse target = null;
            target = (net.ofx.types.x2003.x04.WireResponse)get_store().find_element_user(WIRERS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.WireResponse)get_store().add_element_user(WIRERS$0);
            }
            target.set(wirers);
        }
    }
    
    /**
     * Appends and returns a new empty "WIRERS" element
     */
    public net.ofx.types.x2003.x04.WireResponse addNewWIRERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireResponse target = null;
            target = (net.ofx.types.x2003.x04.WireResponse)get_store().add_element_user(WIRERS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "WIRERS" element
     */
    public void unsetWIRERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRERS$0, 0);
        }
    }
    
    /**
     * Gets the "WIRECANRS" element
     */
    public net.ofx.types.x2003.x04.WireCancellationResponse getWIRECANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.WireCancellationResponse)get_store().find_element_user(WIRECANRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "WIRECANRS" element
     */
    public boolean isSetWIRECANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRECANRS$2) != 0;
        }
    }
    
    /**
     * Sets the "WIRECANRS" element
     */
    public void setWIRECANRS(net.ofx.types.x2003.x04.WireCancellationResponse wirecanrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.WireCancellationResponse)get_store().find_element_user(WIRECANRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.WireCancellationResponse)get_store().add_element_user(WIRECANRS$2);
            }
            target.set(wirecanrs);
        }
    }
    
    /**
     * Appends and returns a new empty "WIRECANRS" element
     */
    public net.ofx.types.x2003.x04.WireCancellationResponse addNewWIRECANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.WireCancellationResponse)get_store().add_element_user(WIRECANRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "WIRECANRS" element
     */
    public void unsetWIRECANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRECANRS$2, 0);
        }
    }
}
